package net.jueb.juebCore.net.message;

import java.io.Serializable;

/**
 * AppMessage 应用程序消息
 */
public class AppMessage implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private final int code;
	
	private final AppBuffer content;

	public AppMessage(int code) {
		this.code=code;
		this.content=new AppBuffer();
	}
	
	public AppMessage(int code,AppBuffer content) {
		this.code=code;
		this.content=content;
	}
	public int getCode() {
		return code;
	}

	public AppBuffer getContent() {
		return content;
	}

	@Override
	public String toString() {
		return "AppMessage [code=" + code + ", content=" + content + "]";
	}
}